/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 */
package org.nanhill.commons.pattern.flow;

/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 * 
 */
public class DefaultEvent implements Event {
	private State from;

	private State to;

	private String id;

	private String on;

	public State getFrom() {
		return from;
	}

	public void setFrom(State from) {
		this.from = from;
	}

	public State getTo() {
		return to;
	}

	public void setTo(State to) {
		this.to = to;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOn() {
		return on;
	}

	public void setOn(String on) {
		this.on = on;
	}

	public DefaultEvent(String id, String on, State from, State to) {
		this.id = id;
		this.from = from;
		this.to = to;
		this.on = on;
	}

	public DefaultEvent() {
	}

}
